#pragma once
#include "stdafx.h"
#include <gdiplus.h>
#include <QtGui>

using namespace Gdiplus;

class CAlphaWnd : public CWnd 
{
public:
	CAlphaWnd(HWND parent = NULL);
	virtual ~CAlphaWnd();
	void			CreateWnd(LPCTSTR pTitle, RECT &rect);
	void			UpdateLayer(CDC &memoryDC);
	void			InitMemoryDC();
	virtual void	DrawLayer();

protected:
	//{{AFX_MSG(CAlphaWnd)
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

protected:
	HWND			m_parent;
	CDC				m_maskDC;
	CDC				m_memoryDC;
	CBitmap			m_memoryBitmap;
};